package org.dromara.fms.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.fms.domain.FmsBill;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 财务单据视图对象 fms_bill
 *
 * @author wenrui Su
 * @date 2024-03-22
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = FmsBill.class)
public class FmsBillVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 单据类型
     */
    @ExcelProperty(value = "单据类型")
    private Long typeId;

    /**
     * 账单名称
     */
    @ExcelProperty(value = "账单名称")
    private String name;

    /**
     * 记账项目
     */
    @ExcelProperty(value = "记账项目")
    private Long classificationItemId;

    /**
     * 来往单位
     */
    @ExcelProperty(value = "来往单位")
    private Long partnerId;

    /**
     * 单据编号
     */
    @ExcelProperty(value = "单据编号")
    private Long sourceId;

    /**
     * 操作员
     */
    @ExcelProperty(value = "操作员")
    private Long operId;

    /**
     * 应收金额
     */
    @ExcelProperty(value = "应收金额")
    private BigDecimal costMoney;

    /**
     * 实收金额
     */
    @ExcelProperty(value = "实收金额")
    private BigDecimal money;

    /**
     * 账户
     */
    @ExcelProperty(value = "账户")
    private Long accountId;

    /**
     * 计划时间
     */
    @ExcelProperty(value = "计划时间")
    private Date planTime;

    /**
     * 执行时间
     */
    @ExcelProperty(value = "执行时间")
    private Date executionTime;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "wms_task_status")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
    * 记账项目名称
     */
    @ExcelProperty(value = "记账项目名称")
    private String classificationItemName;
    /**
     * 来往单位名称
     */
    @ExcelProperty(value = "来往单位名称")
    private String partnerName;
    /**
    * 操作员名称
    */
    @ExcelProperty(value = "操作员名称")
    private String operName;
    /**
    * 账户名称
     */
    @ExcelProperty(value = "账户名称")
    private String accountName;
}
